package com.medical.manage.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @BelongsProject: medical
 * @BelongsPackage: com.medical.manage.domain
 * @Author: szw
 * @CreateTime: 2025-03-18  19:56
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@TableName("t_patients")
public class Patients {
    //患者id
    private Long id;
    //患者姓名
    private String patientName;
    //性别
    private String patientSex;
    //出生日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthDate;
    //联系电话
    private String patientsPhone;
    //联系地址
    private String address;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
